#include "driverlib.h"
#include <stdint.h>
#include <stdbool.h>
#include "delay.h"
#include "system.h"
#include "encoder.h"
#include "serial.h"


int main(void)
{
    SysInit();
	delay_init();
	enc_init();
	
	serial_init();
	Interrupt_enableMaster();
	
    while (1)
    {
		printf("%d,%d\n",enc_read(0),enc_read(1));
		delay_ms(10);
    }
}


